import {createRouter, createWebHistory} from "vue-router";
import Index from "@/views/Index/index.vue";
import NoFound from "@/views/NoFound/index.vue";
import Login from "@/views/Login/index.vue";
export default createRouter({
    history:createWebHistory(),
    routes:[
        {
            // 主界面
            path:"/",
            component:Index
        },
        {
            // 登陆
            path:"/login",
            component:Login
        },
        {
            // 404
            // :pathMath(.*)*
            // :pathMath---->可以代表路由的任意部分
            // .* 重复的次数为0次或多次
            // *表达式可以为多次
            path:"/:pathMath(.*)*",
            // path:"*",
            component:NoFound
        }
    ]
})